function randstr() {
    head -c $[($1+1)/2] /dev/urandom| hexdump -e '"%x"' | cut -c 1-$1
}



